require("../css/adver.less")
document.ready( function(){

  let CouDoTime=document.querySelector("#CouDoTime")
  let FontMobile=document.querySelector("#FontMobile")
  
  let numtime=5
  CouDoTime.textContent=numtime
  let timer=window.setInterval(function(){
            numtime--;
            if(numtime==0){
                clearInterval(timer)
                location.href="../register.html"
                return
            }
            CouDoTime.textContent=numtime 
  },1000)

  let countDown=document.querySelector("#countDown")
  countDown.onclick=function(){
    clearInterval(timer)
    location.href="./register.html"
  }

})